# -*- coding: utf-8 -*-

"""
@author: ramonsantos
"""

import gtk
import gtk.glade    
    
builder = gtk.Builder()
builder.add_from_file("/opt/colors-ref/cor.glade")
window = builder.get_object("janela")

def main():
    signals ={"on_janela_destroy": on_window1_destroy}
    builder.connect_signals(signals)
    window.show()
    gtk.main()
    
def on_window1_destroy(self):
    gtk.main_quit()

if __name__ == "__main__":
    main()